package com.example.springcloud.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.springcloud.entity.Payment;
import com.example.springcloud.mapper.PaymentMapper;
import com.example.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Payment service.
 *
 * @description 针对表 【payment】的数据库操作Service实现
 * @createDate 2021 -12-20 13:29:28
 */
@Service
public class PaymentServiceImpl extends ServiceImpl<PaymentMapper, Payment>
        implements PaymentService {

    /**
     * 注入mapper
     */
    @Resource
    PaymentMapper paymentMapper;

    @Override
    public List<Payment> getAllPayments() {

        return paymentMapper.selectList(null);
    }

}




